﻿using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace OA.Models
{
    public class Post
    {
        [Key]
        public int Id { get; set; }

        /// <summary>
        ///  岗位名称
        /// </summary>
        [Required]
        [DisplayName("岗位名称")]
        public string Name { get; set; }
        /// <summary>
        ///  行政等级
        /// </summary>
        [DisplayName("行政等级")]
        public int Grade { get; set; }
        /// <summary>
        ///  排序
        /// </summary>
        [DisplayName("排序")]
        public int Sort { get; set; }
        /// <summary>
        ///  备注
        /// </summary>
        [DisplayName("备注")]
        public int Remarks { get; set; }
        /// <summary>
        ///  在岗员工
        /// </summary>
        [DisplayName("在岗员工")]
        [InverseProperty("Post")]
	    public virtual ICollection<Account> Employees { get; set; }
    }
}
